package com.zelix;

import java.io.DataOutputStream;
import java.io.IOException;
import java.util.Hashtable;
import java.util.List;
import java.util.Vector;

public abstract class qd extends kd
        implements ie {

    int g;
    int h;
    Vector i;

    public qd(int j) {
        super(j);
    }

    qd(int j, jb jb, int k)
            throws IOException {
        super(j);
        h = k;
        g = n(k);
        jb.skip(g);
    }

    public final sn a(sn sn1, boolean flag, boolean flag1, um um) {
        wn awn[] = sn1.c();
        wn awn1[] = sn1.f();
        int j = awn.length;
        wn awn2[] = wn.a(j - 1);
        System.arraycopy(awn, 0, awn2, 0, j - 1);
        return new sn(awn2, awn1, sn1.e());
    }

    public final boolean b() {
        return false;
    }

    public final boolean a(int j, int k) {
        return j >= k;
    }

    public final boolean c() {
        return false;
    }

    public List p() {
        return i;
    }

    static int n(int j) {
        return (4 - (j + 1) % 4) % 4;
    }

    public String a() {
        return e();
    }

    public void a(Hashtable hashtable, qy qy1, Vector vector) {
        int j;
        for (j = 0; j < i.size(); j++) {
            bn bn1 = null;
            if ((bn1 = (bn) hashtable.get(i.elementAt(j))) == null) {
                bn1 = new bn();
                vector.addElement(bn1);
                hashtable.put(i.elementAt(j), bn1);
            }
            qy1.b(this, bn1);
        }
    }

    public void a(Integer integer, td td1) {
        int j;
        int k;
        j = i.size();
        td1.a(true);
        for (k = 0; k < j; k++) {
            Object obj = i.elementAt(k);
            if ((obj instanceof Integer) && ((Integer) obj).equals(integer))
                i.setElementAt(td1, k);
        }
    }

    public void m(int j) {
        h = j;
        g = n(j);
    }

    public boolean o() {
        return false;
    }

    public void a(DataOutputStream dataoutputstream)
            throws IOException {
        int j;
        super.a(dataoutputstream);
        for (j = 0; j < g; j++) {
            dataoutputstream.writeByte(0);
        }
        td td1 = (td) i.elementAt(i.size() - 1);
        dataoutputstream.writeInt(td1.q() - h);
    }
}